
getReq("/user/getUserOptions", function (result) {
    for (var i = 0; i < result.length; i++) {
        var option = "<option value='" + result[i].value + "'>" + result[i].name + "</option>";
        $("#assetBorrowModalOwnerId").append(option);
        $("#assetBorrowModalUserId").append(option);
    }
})

getReq("/asset/getAssetClassOptions", function (result) {
    if (result != null || result.length != 0) {
        for (var i = 0; i < result.length; i++) {
            $("#assetClass").append("<option value='" + result[i].value + "'>" + result[i].name + "</option>");
        }
    }
});
getReq("/supplier/getSupOptions", function (result) {
    if (result != null || result.length != 0) {
        for (var i = 0; i < result.length; i++) {
            $("#supId").append("<option value='" + result[i].value + "'>" + result[i].name + "</option>");
        }
    }
});
getReq("/asset/getBrandOptions", function (result) {
    if (result != null || result.length != 0) {
        for (var i = 0; i < result.length; i++) {
            $("#brand").append("<option value='" + result[i].value + "'>" + result[i].name + "</option>");
        }
    }
});
getReq("/asset/getCpuOptions", function (result) {
    if (result != null || result.length != 0) {
        for (var i = 0; i < result.length; i++) {
            $("#cpu").append("<option value='" + result[i].value + "'>" + result[i].name + "</option>");
        }
    }
});
getReq("/asset/getDiskTypeOptions", function (result) {
    if (result != null || result.length != 0) {
        for (var i = 0; i < result.length; i++) {
            $("#diskType1").append("<option value='" + result[i].value + "'>" + result[i].name + "</option>");
            $("#diskType2").append("<option value='" + result[i].value + "'>" + result[i].name + "</option>");
        }
    }
});

